class InvoiceItem < ActiveRecord::Base
  attr_accessible :invoice_id, :product_id, :quantity,  :size, :size_number
  
  #has_many :invoice_item_details
  belongs_to :invoice  
  belongs_to :product
  
  validates :product_id, :size, :size_number, :quantity, :presence => true
  validates :quantity, :numericality => true
   
end
